package com.example.interview.tencent;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * 判断回文数
 */
public class timu2 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a = in.nextInt();
        List<Integer> nums = new ArrayList<>();
        while (a > 0) {
            int cur = a % 10;
            nums.add(cur);
            a = a / 10;
        }
        int left = 0;
        int right = nums.size() - 1;
        while (left < right) {
            if (!nums.get(left).equals(nums.get(right))) {
                System.out.println(false);
                return;
            }
            left++;
            right--;
        }
        System.out.println(true);
    }
}
